﻿using NHibernate.Collection.Generic;

namespace monitor_2_DBwork
{
    class Access : IRepositoryName
    {
        public virtual int Id { get; protected set; }

        public virtual string En { get; set; }

        public virtual string Name { get; set; }

        public virtual PersistentGenericSet<Users> UsersList { get; set; }

        public Access() { }

        public Access(string enName, string rusName)
        {
// ReSharper disable DoNotCallOverridableMethodsInConstructor
            En = enName;
            Name = rusName;
// ReSharper restore DoNotCallOverridableMethodsInConstructor
        }
    }
}
